package homework1204;

import java.net.InetAddress;

public class IP {
    public static void main(String[] args) throws Exception {
        InetAddress inet4Address = InetAddress.getByName("www.baidu.com");
        System.out.println(inet4Address);

        InetAddress[] inet4Address2 = InetAddress.getAllByName("www.qq.com");
        for( InetAddress inetAddress1 : inet4Address2){
            System.out.println(inetAddress1);
        }
    }
}

